﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KYO.DAL;
using BusinessLayerHelper;
using ObjectPersistence;

public partial class Admin_Controls_Mod_Slide_SlideList : ListControlBase<ProjectSlide>
{


    ProjectSlideAssembler service = new ProjectSlideAssembler();


    public override PersistentList<ProjectSlide> GetListObjects
    {
        get
        {
            return service.ReadCollectionAll();


        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {

        if (!IsPostBack)
        {
            ToolbarBox1.Header = "Slide Manager";
            List<UrlItem> urls = new List<UrlItem>();
            UrlItem url = new UrlItem();
            url.Text = "Create New";
            url.Url = DoAction.ActionPageView("Slide", Action.CREATE);
            urls.Add(url);

            ToolbarBox1.Options = urls;

            LoadData();

        }
    }


}
